<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
    <head>
        <title>Hyphenator.js &ndash; Test 53</title>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <style type="text/css">
            body {
                width:50%;
                margin-left:25%;
                margin-right:25%;
            }
            .text {
                text-align:justify;
            }
            .test {
            	background-color: #ffd6d6;
            }
            .ref {
            	background-color: #d6ffd6;
            }
            pre {border: 1px dotted grey;}
        </style>
        <script src="../Hyphenator.js" type="text/javascript"></script>
        <script src="../patterns/en.js" type="text/javascript"></script>
        <script type="text/javascript">
                Hyphenator.config({hyphenchar:'|'});
                function process() {
                	var ta2 = document.getElementById('ta2');
                	ta2.value = Hyphenator.hyphenate(document.getElementById('ta1').value, 'en');
                }
                window.onload = function() {
                	document.getElementById('ta1').onchange = process;
                };
        </script>
    </head>
    <body>
        <h1>Test 53</h1>
        <p>Hyphenate a form field value on onchange. (AKA hyphenate a string.)</p>
		<p><a href="test52.html">&lt;- Prev</a> | <a href="test54.html">Next -&gt;</a></p>
		<pre>...</pre>
        <textarea cols="20" rows="3" id="ta1">Hyphenation is also known as syllabification.</textarea>
        <textarea cols="20" rows="3" id="ta2"></textarea>
    </body>
</html>